package net.godbirds;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Import;
import org.springframework.scheduling.annotation.EnableAsync;

import net.godbirds.boot.common.datasource.DynamicDataSourceRegister;

@EnableAsync//开启线程池
//@EnableCaching// 开启缓存
@MapperScan(basePackages = {"net.godbirds.domain.mapper"})//MAPPER扫描
@ComponentScan(value = {"net.godbirds"})//系统组件扫描 
@Import({DynamicDataSourceRegister.class})//数据源注册
@SpringBootApplication
@EnableFeignClients//负载均衡(basePackages = {"com.sinosoft.platform.core.clients"})
//@EnableDiscoveryClient//eureka 注册
public class Client {
	public static void main(String[] args) {
		SpringApplication application = new SpringApplication(Client.class);
		application.setWebEnvironment(true);
		application.run(args);
	}
}
